﻿using Core.Messages;
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;

namespace Core.IServices
{
    [ServiceContract()]  
    public interface IManageCrudService<TId, TDto, TQuery> : IManageReadService<TId, TDto, TQuery>, IManageDeleteService<TId>
    {
        [OperationContract()]  
        Response<TId> Add(Request<TDto> dto);

        [OperationContract()]  
        Response Edit(TId id, Request<TDto> dto);        
    }
}
